package com.ruoyi.project.qyxy.quadtl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.qyxy.quadtl.mapper.QuaSocreDetailMapper;
import com.ruoyi.project.qyxy.quadtl.domain.QuaSocreDetail;
import com.ruoyi.project.qyxy.quadtl.service.IQuaSocreDetailService;

/**
 * 企业资质得分记录Service业务层处理
 * 
 * @author lcl
 * @date 2021-03-05
 */
@Service
public class QuaSocreDetailServiceImpl implements IQuaSocreDetailService 
{
    @Autowired
    private QuaSocreDetailMapper quaSocreDetailMapper;

    /**
     * 查询企业资质得分记录
     * 
     * @param detailId 企业资质得分记录ID
     * @return 企业资质得分记录
     */
    @Override
    public QuaSocreDetail selectQuaSocreDetailById(String detailId)
    {
        return quaSocreDetailMapper.selectQuaSocreDetailById(detailId);
    }

    /**
     * 查询企业资质得分记录列表
     * 
     * @param quaSocreDetail 企业资质得分记录
     * @return 企业资质得分记录
     */
    @Override
    public List<QuaSocreDetail> selectQuaSocreDetailList(QuaSocreDetail quaSocreDetail)
    {
        return quaSocreDetailMapper.selectQuaSocreDetailList(quaSocreDetail);
    }

    /**
     * 新增企业资质得分记录
     * 
     * @param quaSocreDetail 企业资质得分记录
     * @return 结果
     */
    @Override
    public int insertQuaSocreDetail(QuaSocreDetail quaSocreDetail)
    {
        return quaSocreDetailMapper.insertQuaSocreDetail(quaSocreDetail);
    }

    /**
     * 修改企业资质得分记录
     * 
     * @param quaSocreDetail 企业资质得分记录
     * @return 结果
     */
    @Override
    public int updateQuaSocreDetail(QuaSocreDetail quaSocreDetail)
    {
        return quaSocreDetailMapper.updateQuaSocreDetail(quaSocreDetail);
    }

    /**
     * 批量删除企业资质得分记录
     * 
     * @param detailIds 需要删除的企业资质得分记录ID
     * @return 结果
     */
    @Override
    public int deleteQuaSocreDetailByIds(String[] detailIds)
    {
        return quaSocreDetailMapper.deleteQuaSocreDetailByIds(detailIds);
    }

    /**
     * 删除企业资质得分记录信息
     * 
     * @param detailId 企业资质得分记录ID
     * @return 结果
     */
    @Override
    public int deleteQuaSocreDetailById(String detailId)
    {
        return quaSocreDetailMapper.deleteQuaSocreDetailById(detailId);
    }
}
